package com.leyou.item.pojo.api;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * *
 * Created by IntelliJ IDEA.
 * Author: caoLei
 * Date: 2018/10/29
 * Time: 9:24
 * *
 */
@RequestMapping("category")
public interface CategoryApi {

    /**
     * 根据商品分类id查询商品分类名称
     *
     * @param ids 要查询的分类id集合
     * @return 多个名称的集合
     */
    @GetMapping("names")
    public List<String> queryNameByIds(@RequestParam("ids") List<Long> ids);
}
